package cn.xi.service;

import cn.xi.domain.Student;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface StudentService {
    @Transactional
    List<Student> findAll();
    @Transactional
    Student findById(String name);
    @Transactional
    int save(Student student);
    @Transactional
    int update(Student student);
    @Transactional
    int delete(String name);
    @Transactional
     PageInfo findpage(Integer page, Integer size);
}
